﻿<Window x:Class="Sport_Orders.Program.Module_Windows.Cheque"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Sport_Orders.Program.Module_Windows"
        mc:Ignorable="d"
        Title="Чек" 
        Height="450" 
        Width="300"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterScreen">
    <Grid>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--Кнопка печати-->
        <Button Name="BtnPrintCheque"
                Content="Напечатать чек"
                FontSize="20"
                Click="BtnPrintCheque_Click"/>
        
        <!--Просмотр чека-->
        <FlowDocumentReader Grid.Row="1">
            <FlowDocument Name="FDcheque"
                          Background="WhiteSmoke">
                <Paragraph>
                    <TextBlock Name="TxbCheque"
                               Text="Информация"
                               FontFamily="Calibri">
                        <UIElement.RenderTransform>
                            <TransformGroup>
                                <SkewTransform/>
                                <ScaleTransform/>
                                <TranslateTransform/>
                                <RotateTransform/>
                            </TransformGroup>
                        </UIElement.RenderTransform>
                    </TextBlock>
                </Paragraph>
            </FlowDocument>
        </FlowDocumentReader>

    </Grid>
</Window>
